home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / GameKit / Headers / gamekit / HighScoreDistributor.h < prev    next >
Text File  |  1995-06-12  |  945b  |  23 lines

  1. // The HighScoreDistributor is the advertised server.  A game calls it
  2. // up and asks for the server for it's high score table.  The distributor
  3. // looks for the appropriate score server.  If that server exists, then
  4. // it returns it, and the game uses it's "personal" server.  If not, a
  5. // new server is created and then returned.  If a game requires a specific
  6. // subclass of HighScoreSlot to be used by a server, then the Distributor
  7. // needs to be told this before the server is created, so that an
  8. // appropriate server is generated.  Right now, this is not implemented,
  9. // and only the default is supported.  In the future, HighScoreSlot
  10. // subclasses will be dynamically loaded to allow the servers for new
  11. // games to be set up.
  12.  
  13. #import <appkit/appkit.h>
  14.  
  15. @interface HighScoreDistributor:Object
  16. {
  17.     id servers;    // a HashTable to hold all the available servers
  18. }
  19.  
  20. - init;
  21. - (id <HighScoreServer>)getServerFor:(const char *)gameName;
  22.  
  23. @end